<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <!--checkbox单选框-->
  <input type="checkbox" id="agree" v-model="isAgree" />
  <button :disabled="!isAgree">下一步</button>
  <h2>你选择的是：{{isAgree}}</h2>

  <hr />

  <!--checkbox多选框-->
  <input type="checkbox" value="篮球" v-model="hobbies" />篮球
  <input type="checkbox" value="足球" v-model="hobbies" />足球
  <input type="checkbox" value="排球" v-model="hobbies" />排球
  <input type="checkbox" value="羽毛球" v-model="hobbies" />羽毛球
  <input type="checkbox" value="乒乓球" v-model="hobbies" />乒乓球
  <h2>你选择的是：{{hobbies}}</h2>

  <hr />

  <label v-for="item in originHobbies" :for="item">
    <input type="checkbox" :value="item" :id="item" v-model="hobbies" />{{item}}
  </label>

  <h2>你选择的是：{{hobbies}}</h2>
</div>

<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      message: '你好',
      isAgree: false, // 单选框对应的boolean类型
      hobbies: [],    // 多选框对应的数组类型
      originHobbies: ['篮球', '足球', '排球', '羽毛球', '乒乓球']
    }
  });
</script>
</body>
</html>